profiler: Prefer CLOCK_MONOTONIC
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 May 2019 17:52:12 +0000 (13:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 May 2019 17:52:12 +0000 (13:52 -0400)
This is what g_get_monotonic_time gives us,
after all, and we need to have the same clock
in all our profiler data.

gdk/capture/sp-clock.c

index 8811ac44ca4366c0610c2561dd460614d55188ca..b53dafb741706226bf43732ab3a0ebbdf8b3dc83 100644 (file)
@@ -24,9 +24,9 @@ void
 sp_clock_init (void)
 {
   static const gint clock_ids[] = {
+    CLOCK_MONOTONIC,
     CLOCK_MONOTONIC_RAW,
     CLOCK_MONOTONIC_COARSE,
-    CLOCK_MONOTONIC,
     CLOCK_REALTIME_COARSE,
     CLOCK_REALTIME,
   };